package cqrtplm.service;

import com.hustcad.plm.pdm.doc.vo.DocDetails;
import com.ty.basic.entity.IdentifierEntity;
import com.ty.basic.response.ResponseResult;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;

public interface AssociatedDocService {
    /**
     * 获取零部件关联的文档和CAD文档
     *
     * @param identifierEntities
     * @return
     */
    List<Object> getPartLinkDocAndCadDoc(List<IdentifierEntity> identifierEntities);

    /**
     * 导出关联图文档清单
     *
     * @param object
     * @return
     */
    void exportDocList(Object object, HttpServletResponse response) throws IOException;
    /**
     * 图文档打包下载
     * @param identifierEntities
     * @return
     */
    ResponseResult<byte[]> downloadFilesAsZip(List<IdentifierEntity> identifierEntities);
    /**
     * 查询图文档清单
     *
     * @param map
     * @return
     */
    List<Object> queryDocListByKeyWord(LinkedHashMap map);

    /**
     * 查询BOM结构中图文档的齐套性
     *
     * @param identifierEntities
     * @return
     */
    List<DocDetails> getPartLinkCompleteList(List<IdentifierEntity> identifierEntities);

}
